package com.shcowin.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Select;
import com.shcowin.entity.Products;
 
 
public interface ProductsMapper{
    
    public List<Products> getAll();
    
    public List<Products> getByPage(int start,int size);
    
    
    public List<Products> getByHomeMark();
    
    @Select("select count(id) from products where home_mark =1")
    public int getHomeMarkCount();
    
    public Products getById(int id);
    
    public Products getByName(String name);
    
    public void add(Products products);
    
    public void edit(Products products);
    
    public void del(int id);
    @Select("select count(id) from products")
    public int getCount();
}